
<!DOCTYPE html>
<html>
<head>
	<title>新增栏目</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="__ADMIN__/bootstrap/css/bootstrap.min.css" media="all">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/AdminLTE.min.css">
    <link rel="stylesheet" href="__ADMIN__/adminlte/css/font-awesome.min.css">
    <link rel="stylesheet" href="__ADMIN__/plugins/fileinput/css/fileinput.min.css">
</head>
<body>
    <div class="panel-body">
      <div class="row">
        <div class="col-xs-12">
         <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
              <li class="header"><i style="cursor: pointer;" onclick="window.history.back(-1);" class="fa fa-mail-reply-all"></i>修改图片</li>
            </ul>
             <form class="form-horizontal" enctype="multipart/form-data" method="post" action="{:url('edit')}">
                 <div class="box-body">
                        <input type="hidden" name="id" value="{$bannerMessage.id}">
                          <div class="form-group">
                            <label  class="col-sm-1 control-label"><span style="color:#f00;">*</span>标题</label>
                            <div class="col-sm-3">
                              <input type="text" name="title" value="{$bannerMessage.title}" class="form-control"  placeholder="标题">
                            </div>
                          </div>
                        <div class="form-group">
                            <label  class="col-sm-1 control-label">电脑端图片</label>
                            <div class="col-sm-4">
                                <input name="pc_url" id="pcFileImg"   type="file">
                                <p class="help-block">图片格式jpg,png,gif，大小不超过1M，上传尺寸：1920px*300px</p>
                            </div>
                            <div class="col-sm-4">
                                <img src="{$bannerMessage.pc_url}" height="50"/>
                            </div>
                        </div>
                        <div class="form-group">
                         <label  class="col-sm-1 control-label">手机端图片</label>
                         <div class="col-sm-4">
                             <input name="m_url" id="mFileImg"   type="file">
                             <p class="help-block">图片格式jpg,png,gif，大小不超过1M，上传尺寸：820px*600px</p>
                         </div>
                            <div class="col-sm-4">
                               <img src="{$bannerMessage.m_url}" height="50"/>
                            </div>
                     </div>
                     <div class="form-group">
                         <label  class="col-sm-1 control-label">网址链接</label>
                         <div class="col-sm-3">
                             <input type="text" name="url" class="form-control"  value="{$bannerMessage.url}" placeholder="网址链接">
                         </div>
                     </div>
                          <div class="form-group">
                            <label  class="col-sm-1 control-label">隐藏图片</label>
                            <div class="col-sm-2">
                               <select name="is_hidden" class="form-control">
                                <option {if condition="$bannerMessage.is_hidden == 0 "}  selected="selected" {/if} value="0">否</option>
                                <option {if condition="$bannerMessage.is_hidden == 1 "}  selected="selected" {/if} value="1">是</option>
                              </select>
                            </div>
                          </div>
                    </div>
                <div class="box-body">
                  <div class="form-group">
                      <label  class="col-sm-1 control-label"></label>
                      <div class="col-sm-2">
                          <button type="submit" class="btn btn-block btn-info">确认提交</button>
                      </div>
                  </div>
                </div>

             </form>
            <!-- /.tab-content -->
          </div>
        </div>
      </div>
    </div>
    
</body>

<!-- jQuery 2.2.3 -->
<script src="__ADMIN__/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="__ADMIN__/bootstrap/js/bootstrap.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/fileinput.min.js"></script>
<script src="__ADMIN__/plugins/fileinput/js/locales/zh.js"></script>
<script>

    $("#pcFileImg").fileinput({
        language: 'zh',                        
        browseLabel: '选择附件',
        uploadAsync:false,
        showUpload: false,
        showPreview:false,
    })
    $("#mFileImg").fileinput({
        language: 'zh',
        browseLabel: '选择附件',
        uploadAsync:false,
        showUpload: false,
        showPreview:false,
    })
</script>
</html>